/*
 * Symphony - A modern community (forum/SNS/blog) platform written in Java.
 * Copyright (C) 2012-2016,  b3log.org & hacpai.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * 前台样式.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @author <a href="http://88250.b3log.org">Liang Ding</a>
 * @version 2.18.18.42, Nov 24, 2016
 */

@import "variables";

/* start list */
.domains-count {
    padding: 10px 18px;
    font-size: 18px;
    line-height: 26px;
    color: #246;
    text-align: center;
    background-color: #e2eef9;
    border: 1px solid #bac6d3;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.domains-module {
    margin: 20px 0 0;
}

.module-list.domain .slogan {
    text-align: center;
    margin-top: -8px;
    width: 60px;
}

.module-list.domain .title {
    margin-left: 80px;
}
/* end list */

/* start article */
.article-module {
    padding: 10px;
}

#heatBar {
    position: fixed;
    top: 2px;
    right: 0px;
    width: 100%;
    z-index: 71;
}

h1.article-title {
    word-break: break-all;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
    line-height: 36px;
}

.article-info {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    line-height: 19px;
    padding-bottom: 10px;

    .article-info-action {
        font-size: 24px;
        font-weight: bold;
        line-height: 36px;

        a {
            text-decoration: none;
            transition: all 0.2s ease-out 0s;
            color: #666;
        }

        a:hover {
            color: #333;
        }

        .share {
            position: relative;
            font-size: 18px;

            #qrCode {
                position: absolute;
                top: 28px;
                left: 0;
                border: 5px solid #e5e5e5;
                z-index: 1;
                height: 90px;
                border-radius: 3px;
                width: 90px;
            }

            [class^="icon-"] {
                cursor: pointer;
                transition: all 0.2s ease-out 0s;
                color: $fade;
            }

            [class^="icon-"]:hover {
                color: $gray;
            }

        }

        #shareClipboard.tooltipped-hover .icon-link {
            color: $gray;
        }
    }
}

#thoughtProgress {
    height: 2px;
    position: relative;
    margin-bottom: 10px;
    margin-top: -11px;
}

#thoughtProgress .bar {
    position: absolute;
    background-color: #e0e0e0;
    height: 2px
}

#thoughtProgress .icon-video {
    position: absolute;
    top: -8px;
    left: 0;
    cursor: pointer;
    color: $red;
    margin-left: -10px;
}

#revision .pagination {
    margin-bottom: 10px;
    float: right;
}

label.cmt-anonymous {
    margin: 5px 20px 0 0;
}

.article-actions {
    padding-top: 10px;
    text-align: center;

    .has-cnt {
        border: 1px solid #d9d9d9;
        border-radius: 3px;
        transition: 218ms;
        padding: 2px 5px;
        font-size: 13px;
    }

    .has-cnt:hover {
        background-color: #bcbcbc;
        border-color: #bfbfbf;
        color: #fff;
    }
}

.action-btns > span,
.action-btns > a {
    color: $fade;
    text-decoration: none;
}

.action-btns > span:hover,
.action-btns > a:hover {
    color: $gray;
}

.action-btns > span.ft-red,
.action-btns > a.ft-red,
.action-btns > span.ft-red:hover,
.action-btns > a.ft-red:hover {
    color: $red;
}

.action-btns > span.icon-reply-btn {
    color: #666;
    font-weight: bold;
}

.action-btns > span.icon-reply-btn:hover {
    color: #333;
}

.comments {
    .comments-header a {
        color: $fade;
        font-size: 16px;
        text-decoration: none;
    }

    .comments-header a:hover {
        color: $gray;
    }

    .list > ul > li.cmt-shield-shield {
        background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .9)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .9)), color-stop(.75, rgba(255, 255, 255, .9)), color-stop(.75, transparent), to(transparent));
        background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
        background-image: linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
        background-color: #f7f7f7;
        background-size: 45px 45px;
    }

    .list > ul > li.cmt-perfect,
    .list > ul > li.cmt-perfect:hover {
        background-color: #f9f6f6;
    }

    .list > ul > li:hover .hover-show,
        .list > ul > li.focus .fn-hidden {
        visibility: visible;
    }

    .list > ul > li:last-child {
        border-bottom-width: 0;
    }

    .comment {
        margin: 5px 0;
    }

    .comment > p:last-child {
        margin-bottom: 0px;
    }

    .comment > p > img:last-child {
        margin-bottom: 10px;
    }

    .comment-info .icon-heart {
        vertical-align: text-bottom;
    }

    .comment-info a:hover {
        text-decoration: none;
    }
}

.nice .comments > ul > li:last-child {
    border-bottom-width: 0;
}

.comment-get-comment.list > ul > li {
    padding-top: 0;
}

.comment-replies.list > ul {
    margin-top: 10px;
}

.comment-replies.list > ul > li {
    border-bottom-width: 0;
    border-top: 1px solid #eee;
}

.comment-replies.list > ul > li {
    background-color: transparent;
}

.article-no-comment-img {
	animation: spaceboots 1s infinite;
}

#articleRewardContent {
    margin-top: 10px;
    padding: 10px;
    background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, rgba(255, 255, 255, .9)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .9)), color-stop(.75, rgba(255, 255, 255, .9)), color-stop(.75, transparent), to(transparent));
    background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, rgba(255, 255, 255, .9) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .9) 75%, transparent 75%, transparent);
    background-color: #f7f7f7;
    background-size: 45px 45px;
}

#articleRewardContent > p {
    margin: 0;
}

#articleRewardContent.reward {
    text-align: center;
}

#articleRewardContent.reward > span {
    display: inline-block;
}

#commentContent,
#chatContent {
    background-color: #FAFAFA;
    margin: 51px 0 0 0;
    overflow: hidden;
    padding: 4px;
    height: 102px;
    width: 100%;
}

.CodeMirror-scroll {
    min-height: 88px;
}

#replyUseName {
    line-height: 20px;
    height: 20px;
}

#addCommentTip {
    margin-top: -5px;
}

#articleToC {
    top: 21px;
    z-index: 60;
}

.article-toc li {
    list-style-type: none;
}

.article-toc li a {
    padding: 5px 10px 5px 20px;
    border-left: 2px solid transparent;
    display: block;
    line-height: 20px;
    color: #767676;
}

.article-toc li a:last-child {
    border-bottom-width: 0;
}

.article-toc li a:hover {
    border-left: 1px solid $blue;
    background-color: #F7F7F7;
    padding-left: 21px;
    color: $blue;
    text-decoration: none;
}

.article-toc li.current a {
    border-left: 2px solid $blue;
    background-color: #f0f0f0;
    color: $blue;
}

.article-toc li.toc-h2 a,
.article-toc li.toc-h2.current a:hover {
    padding-left: 34px;
}

.article-toc li.toc-h3 a,
.article-toc li.toc-h3.current a:hover {
    padding-left: 48px;
}

.article-toc li.toc-h4 a,
.article-toc li.toc-h4.current a:hover {
    padding-left: 62px;
}

.article-toc li.toc-h5 a,
.article-toc li.toc-h5.current a:hover {
    padding-left: 86px;
}

.article-toc li.toc-h2 a:hover {
    padding-left: 35px;
}

.article-toc li.toc-h3 a:hover {
    padding-left: 49px;
}

.article-toc li.toc-h4 a:hover {
    padding-left: 63px;
}

.article-toc li.toc-h5 a:hover {
    padding-left: 87px;
}

.editor-panel {
    background-color: rgba(250, 250, 250, 0.88);
    border-top: 1px solid #eee;
    padding: 5px 0 10px 0;
    position: fixed;
    width: 100%;
    z-index: 80;
    bottom: -500px;
}

.editor-panel .form {
    width: 100%
}

.editor-panel .editor-hide {
    width: 20px;
    text-align: center;
    height: 20px;
    color: #ccc;
    margin-top: 5px;
}

.editor-panel .editor-hide:hover {
    color: $gray;
}

.article-charge-point {
    margin: -15px 10px 10px 10px;
}

#revision .cm-s-default.CodeMirror {
    border-radius: 0;
    border: 0;
    margin-bottom: 0;
    height: auto;
}
/* end article */

/* start article list */
.article-list {

    ul > li {
        padding: 15px;
    }

    .stick li:last-child {
        border-bottom-width: 0;
    }

    ul > li > h2 {
        margin: 5px 0;
    }

    ul > li > h2 > a {
        font-size: 18px;
    }

    ul > li:hover .fn-hidden {
        visibility: visible;
    }

    .abstract {
        margin-top: 5px;
        color: #666;
        display: block;
        text-decoration: none;
        text-align: justify;
        line-height: 1.6;
    }

    ul > li > h2 > a:visited,
    .abstract:visited {
        color: $gray;
    }

    .author {
        color: #666;
        font-weight: 600;
    }

    .list-info {
        line-height: 20px;
    }
}

.heat {
    position: absolute;
    height: 5px;
    background-color: $red;
    z-index: 1;
    bottom: -3px;
    right: 0;
}

.point,
.point-remove {
    position: absolute;
    height: 5px;
    background-color: $red;
    z-index: 1;
    bottom: -3px;
    right: 0px;
    width: 5px;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: slideInRight;
    animation-name: slideInRight;
}

.point-remove {
    animation-name: slideInLeft;
    -webkit-animation-name: slideInLeft;
}

@keyframes slideInLeft {
    0% {
        right: 0;
    }

    100% {
        right: 100%;
    }
}

@-webkit-keyframes slideInLeft {
    0% {
        right: 0;
    }

    100% {
        right: 100%;
    }
}

@keyframes slideInRight {
    0% {
        right: 100%;
    }

    100% {
        right: 0;
    }
}

@-webkit-keyframes slideInRight {
    0% {
        right: 100%;
    }

    100% {
        right: 0;
    }
}

.article-level0 {
    color: $fade;
}
.article-level1 {
    color: #ffcc00;
}
.article-level2 {
    color: #ffc1cc;
}
.article-level3 {
    color: #ff6633;
}
.article-level4 {
    color: $red;
}
/* end article list */

/* start verify */
.verify {
    background-color: #fff;

    .intro {
        padding: 100px 50px;
        background-color: #f1f7fe;
        width: 40%;
        color: #666;
    }

    .verify-wrap {
        width: 60%;
    }

    /* start register & login form */
    .form {
        font-size: 14px;
        line-height: 1.6;
        width: 250px;
        margin: 100px auto;

        svg {
            margin: 0 auto;
            display: block;
        }

        input[type="text"],
        input[type="password"] {
            margin: 10px 0;
            width: 100%;
            padding-left: 36px;
            background-color: #FFF;
        }

        button {
            margin: 10px 0;
            width: 100%;
        }

        .input-wrap {
            position: relative;

            span {
                color: $gray;
                position: absolute;
                top: 16px;
                font-size: 20px;
                left: 10px;
            }
        }

        .captcha-img {
            top: 11px;
            position: absolute;
            height: 31px;
            left: 1px;
            border-radius: 3px 0 0 3px;
        }

        input.captcha-input {
            padding-left: 91px;
        }
    }
    /* end register & login form */
}
/* end verify */

/* start tags.html */
.tags-cold li h2,
.tags-trend li h2 {
    display: inline;
}
/* end tags.html */

/* start tag-article.html */
.tag-articles .article-module {
    padding-bottom: 0;
}

.tag-articles-tag-desc.tag-desc {
    margin: 10px 0 0 0;
}

.tag-articles-tag-desc.tag-desc > li > div {
    left: -3px;
    right: auto;
    border-radius: 0 3px 3px 3px;
}

.tag-articles h1.fn-inline {
    line-height: 38px;
    margin-bottom: 10px;
}

.tag-articles .btn.red {
    vertical-align: super;
}
/* end tag-article.html */

/* start overwrite prettify.css */
code.prettyprint {
    display: inline;
    border: none;
    background-color: initial;
    border-radius: initial;
    padding: initial;
}

code .str { color: initial; } /* string  - green */
code .kwd { color: initial; } /* keyword - dark pink */
code .com { color: initial; font-style: italic; } /* comment - gray */
code .typ { color: initial; } /* type - light blue */
code .lit { color: initial; } /* literal - blue */
code .pun { color: initial; } /* punctuation - white */
code .pln { color: initial; } /* plaintext - white */
code .tag { color: initial; } /* html/xml tag    - light blue */
code .atn { color: initial; } /* html/xml attribute name  - khaki */
code .atv { color: initial; } /* html/xml attribute value - green */
code .dec { color: initial; } /* decimal - blue */
/* end overwrite prettify.css */

/* start activity */
.activity {
    min-height: 300px;
}

.activity .list .ft-fade {
    margin-top: 6px;
    display: block;
}

#charCanvas {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-color: #fff;
    display: block;
    background-image: url(../images/m-char.png);
    background-size: cover;
    margin: 20px auto;
}

#snakeCanvas {
    margin: 20px auto;
    display: block;
}

.snak-rank {
    margin: 20px;

    .module:last-child {
        margin-left: 20px;
        margin-bottom: 20px;
    }

    .count {
        position: absolute;
        top: 10px;
        right: 10px;
    }
}

.sub-head .avatar-small {
    height: 24px;
    width: 24px;
    vertical-align: sub;
}

.sub-head .ft-13 {
    font-weight: normal;
}
/* end activity */

/* start chat room */
.chat-room .online-cnt {
    margin-top: 11px;
}

.chat-room .list {
    height: 200px;
    overflow: auto;
}
/* end chat room */

/* start index */
.index {
    .cb-stick {
        left: -15px;
    }

    .wrapper {
        width: 90%;
    }

    .main {
        padding: 40px 0;
    }

    .index-main {
        width: 60%;
    }

    .index-side {
        margin-left: 2px;
        width: 40%;
    }

    .article-list .heat {
        display: none;
    }

    .index-tabs > span {
        flex: 1;
        display: inline-block;
        vertical-align: middle;
        line-height: 40px;
        cursor: pointer;
        transform: translateZ(0);
        backface-visibility: hidden;
        position: relative;
        transition-property: color;
        transition-duration: .3s;
        text-align: center;
        border-bottom: 8px solid $blue;
        background-color: #FFF;
        color: $gray;
        overflow: hidden;
    }

    .index-tabs > span a {
        color: #333;
        text-decoration: none;
        display: block;
        cursor: auto;
    }

    .index-tabs > span.current,
    .index-tabs > span.current:hover {
        color: #333;
    }

    .index-tabs > span.tags {
        border-bottom-color: $green;
        margin: 0 2px;
    }

    .index-tabs > span.users {
        border-bottom-color: #f1e05a;
    }

    .index-tabs > span.perfect {
        border-bottom-color: $red;
        flex: 2;
    }

    .index-tabs > span.check {
        border-bottom-color: #563d7c;
        margin: 0 2px;
    }

    .index-tabs > span.post {
        border-bottom-color: #244776;
    }

    .index-tabs > span:hover,
    .index-tabs > span:hover a {
        color: #fff
    }

    .index-tabs > span:before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: $blue;
        transform: scaleY(0);
        transform-origin: 50% 100%;
        transition-property: transform;
        transition-duration: .3s;
        transition-timing-function: ease-out
    }

    .index-tabs > span.tags:before {
        background-color: $green;
    }

    .index-tabs > span.users:before {
        background-color: #f1e05a;
    }

    .index-tabs > span.perfect:before {
        background-color: $red;
    }
    
    .index-tabs > span.check:before {
        background-color: #563d7c;
    }

    .index-tabs > span.post:before {
        background-color: #244776;
    }

    .index-tabs > span:hover:before {
        transform: scaleY(1);
    }

    .index-tabs > span.current:hover:before {
        transform: scaleY(0);
    }

    .index-tabs > span > span {
        display: none;
    }

    .index-tabs > span.current > span {
        display: inline-block;
    }

    .index-tabs-panels {
        background-color: #FFF;
        padding: 15px;
    }

    .index-tabs-panels > ul > li:last-child,
    .perfect-panel.list > ul > li:last-child {
        border-bottom-width: 0;
    }

    .perfect-panel {
        background-color: #f1f7fe;
        padding: 0 10px;

        .avatar-small {
            position: absolute;
            left: 10px;
        }

        .fn-ellipsis {
            padding: 0 50px 0 30px;
            display: block;
            box-sizing: border-box;
            line-height: 20px;
        }

        .count {
            position: absolute;
            right: 10px;
            top: 12px;
        }
    }

    .metro-item {
        flex: 1;
        margin-bottom: 2px;
        background-color: #FFF;
        height: 200px;
        text-align: center;
        overflow: hidden;
        position: relative;

        .preview {
            height: 100%;
            width: 100%;
            padding-top: 25%;
            position: relative;
            box-sizing: border-box;
            display: block;
            transition: all 0.2s ease-out 0s;
            color: $gray;
            text-decoration: none;
        }

        .preview:hover {
            background-color: rgba(0, 0, 0, 0.03);
            color: #333;
        }

        .preview img {
            transition: all 0.2s ease-out 0s;
        }

        .preview:hover > img {
            border-radius: 30px;
        }

        .preview > b {
            display: block;
            margin-top: 20px;
            font-weight: normal;
        }
    }

    .metro-item.ad img {
        width: 100%;
    }

    .metro-item.mid {
        margin: 0 2px 2px;
    }

    .metro-border > div {
        height: 8px;
        flex: 1;
        background-color: $blue;
        margin-top: -2px;
    }

    .metro-border > div.red {
        background-color: $red;
        margin: -2px 2px 2px 2px;
    }

    .metro-border > div.green {
        background-color: $green;
    }

    .index-side.down {
        .metro-line {
            margin-top: 2px;

            .last {
                margin-left: 2px;
            }
        }

        .metro-border div {
            background-color: #563d7c;
        }

        .metro-border div.yellow {
            background-color: #f1e05a;
            margin-left: 2px;
        }

        .list {
            background-color: #FFF;
            padding: 15px;

            ul {
                overflow: hidden;
                height: 402px;
            }
        }
    }
}
@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

.ripple {
    position: absolute;
    background: rgba(0,0,0,.15);
    border-radius: 100%;
    transform: scale(0);
    pointer-events: none;
    animation: ripple .75s ease-out;
    content: " ";
    width: 100%;
    height: 100%;
}
/* end index */

/* start symhub */
.symhub {

    li a {
        color: #666;
        vertical-align: middle;
        font-size: 16px;
        line-height: 20px;
    }

    li:last-child {
        border-bottom: 0;
    }
}
/* end symhub */
